package Array;

import java.util.Arrays;

public class Insert1 {
    public static void main(String[] args) {
        int [] arr={1,4,2,100,42,88};
        for (int i = 1; i < arr.length; i++) {
            for (int j = i; j>0; j--) {
                if(arr[j]<arr[j-1]){
                    int t=arr[j-1];
                    arr[j-1]=arr[j];
                    arr[j]=t;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
    }

